<?php
/*********首页**********/
if(!is_user_logged_in()) {
	wp_redirect(site_url()."/wp-login.php");
	exit;
}
global $current_user,$userdata;
get_currentuserinfo();
?>
<div class="wpuf-author">
	<div class="wpuf-author-inside odd">
		<div class="user_profile">
			<div class="user_photo">
				<?php echo get_avatar( $userdata->user_email, 80 ); ?>   
			</div>
			<div class="user_info">
          
		 
<?php 

echo '<div style="background:#EFEFEF;display:inline-block;margin-right:25px;"><div style="float:left;font-size:16px;font-weight:bold;background:#E0E0E0;padding:18px;color:#565656;">' . __('我的积分', 'cp') . ':</div><div style="float:left;padding:10px;font-size:16px;">' . cp_getPoints(cp_currentUser()) . '</div></div>';
		if(cp_module_activated('ranks')){
			echo '<div style="background:#EFEFEF;display:inline-block;"><div style="float:left;font-size:16px;font-weight:bold;background:#E0E0E0;padding:18px;color:#565656;">' . __('我的等级', 'cp') . ':</div><div style="float:left;padding:10px;font-size:16px;">' . cp_module_ranks_getRank(cp_currentUser()) . '</div></div>';
		}
		echo '<div style="clear:both;"></div><br />';
		
		echo '<p style="font-weight:bold;">' . __('你最近积分交易记录:', 'cp') . '</p>';
		
		cp_show_logs_jifen(cp_currentUser(), 15 , false);
		
	 

?>

			</div>						
		</div>
		 
		
	</div>
</div>